package top.continew.admin.generator.service;

import top.continew.admin.generator.model.query.TaskTodoUploadQuery;
import top.continew.admin.generator.model.req.TaskTodoUploadReq;
import top.continew.admin.generator.model.resp.TaskTodoUploadDetailResp;
import top.continew.admin.system.model.entity.user.UserDO;
import top.continew.starter.data.mp.service.IService;
import top.continew.starter.extension.crud.service.BaseService;
import top.continew.admin.generator.model.entity.TaskTodoUploadDO;
import top.continew.admin.generator.model.resp.TaskTodoUploadResp;
import java.util.List;

/**
 * 待办事项附件业务接口
 *
 * @author kellen
 * @since 2025/07/30
 */
public interface TaskTodoUploadService extends BaseService<TaskTodoUploadResp, TaskTodoUploadDetailResp, TaskTodoUploadQuery, TaskTodoUploadReq>, IService<TaskTodoUploadDO> {

    /**
     * 根据待办事项ID获取附件列表
     */
    List<TaskTodoUploadResp> listByTaskTodoId(Long taskTodoId);

    /**
     * 删除待办事项的所有附件
     */
    void deleteByTaskTodoId(Long taskTodoId);
}